﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;


namespace sqxt
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            //旧登录入口
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Text());


            #region  新登录入口
            Application.EnableVisualStyles();
           // Application.SetCompatibleTextRenderingDefault(false);
            //Splasher.Show(typeof(login_begin));
            login frm = new login();
            if (DialogResult.OK == frm.ShowDialog())
            {
                Splasher.Show(typeof(login_begin));
                bool b = Splasher.mima(frm.uid,frm.pwd);
                Mainform MyMainForm1 = new Mainform(b, frm.uid);
                if (!b)
                {
                    Main();
                    //Splasher.Close();
                    //frm.ShowDialog();
                
                }
                else
                {
                    Mainform MyMainForm = new Mainform();
                    Application.Run(MyMainForm);
                }
            }
            else
            {
                Application.Exit();

            }
            #endregion
        }
    }
}